package com.dk.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class User {
    private Integer uid;

    private String username;

    private String password;

    private String salt;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date date;

    private String standbyA;

    private String standbyB;

    private Integer standbyC;

    private Integer standbyD;

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt == null ? null : salt.trim();
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getStandbyA() {
        return standbyA;
    }

    public void setStandbyA(String standbyA) {
        this.standbyA = standbyA == null ? null : standbyA.trim();
    }

    public String getStandbyB() {
        return standbyB;
    }

    public void setStandbyB(String standbyB) {
        this.standbyB = standbyB == null ? null : standbyB.trim();
    }

    public Integer getStandbyC() {
        return standbyC;
    }

    public void setStandbyC(Integer standbyC) {
        this.standbyC = standbyC;
    }

    public Integer getStandbyD() {
        return standbyD;
    }

    public void setStandbyD(Integer standbyD) {
        this.standbyD = standbyD;
    }
}